package org.csu.mybigpro.DTO;
// 【关键改动1】导入注解
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;

// 【关键改动2】在类定义的上方添加注解
@JsonIgnoreProperties(ignoreUnknown = true)
public class GradingReportDto {

    private double overallScore;
    private List<TopicAccuracy> accuracyByTopic;
    private List<String> strengths;
    private List<String> weaknesses;
    private List<String> suggestions;
    private int correctCount;
    private int totalCount;

    // TopicAccuracy 内部类保持不变
    public static class TopicAccuracy {
        private String topic;
        private double accuracy;
        public TopicAccuracy() {}
        public TopicAccuracy(String topic, double accuracy) { this.topic = topic; this.accuracy = accuracy; }
        public String getTopic() { return topic; }
        public void setTopic(String topic) { this.topic = topic; }
        public double getAccuracy() { return accuracy; }
        public void setAccuracy(double accuracy) { this.accuracy = accuracy; }
    }

    // Getters and Setters 保持不变
    public double getOverallScore() { return overallScore; }
    public void setOverallScore(double overallScore) { this.overallScore = overallScore; }
    public List<TopicAccuracy> getAccuracyByTopic() { return accuracyByTopic; }
    public void setAccuracyByTopic(List<TopicAccuracy> accuracyByTopic) { this.accuracyByTopic = accuracyByTopic; }
    public List<String> getStrengths() { return strengths; }
    public void setStrengths(List<String> strengths) { this.strengths = strengths; }
    public List<String> getWeaknesses() { return weaknesses; }
    public void setWeaknesses(List<String> weaknesses) { this.weaknesses = weaknesses; }
    public List<String> getSuggestions() { return suggestions; }
    public void setSuggestions(List<String> suggestions) { this.suggestions = suggestions; }
    public int getCorrectCount() { return correctCount; }
    public void setCorrectCount(int correctCount) { this.correctCount = correctCount; }
    public int getTotalCount() { return totalCount; }
    public void setTotalCount(int totalCount) { this.totalCount = totalCount; }
}
